package dk.hewison.client.pages;

import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.Widget;
import dk.hewison.client.mvc.AbstractView;

/**
 * @author John Hewison
 * @author $LastChangedBy: john.hewison $:  $ $LastChangedDate: 2009-02-03 19:28:40 +0000 (Tue, 03 Feb 2009) $:
 * @version $Revision: 357 $:
 */
public class StartPageView extends AbstractView<String> {

    TextArea textArea;

    public void initView() {
        textArea = new TextArea();
        textArea.setVisibleLines(20);
        textArea.setCharacterWidth(50);
        textArea.setText("Loading user data");
        /*DataController.getInstance().getDirectory("", new Callback<Directory>() {

            public void doSuccess(Directory result) {
                textArea.setText(result.toString());
            }
        });*/
    }

    public Widget getMyWidget() {
        return textArea;
    }

    public String getModel() {
        return null;
    }

    public void setModel(String model) {
        textArea.setText(model);
    }
}
